package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("audit_log")
@ApiModel(description = "操作审计表")
public class AuditLog implements Serializable {
    @ApiModelProperty("主键，自增审计ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("操作用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("操作类型")
    @TableField("action")
    private String action;

    @ApiModelProperty("操作详情")
    @TableField("details")
    private String details;

    @ApiModelProperty("操作时间")
    @TableField(value = "timestamp")
    private LocalDateTime timestamp;
}